from _datetime import datetime


class mylog:

    @staticmethod
    def st():
        return datetime.now().strftime("%y%m%d%H%M%S")
        # if t:
        #    d = datetime.strptime("%Y%m%d %H:%M:%S")
        #    return d
        # else:
        #    return datetime.now().strftime("%Y-%m-%d %H:%M:%S")

    @staticmethod
    def info(s: str = ''):
        print(f'[INFO][{mylog.st()}]' + s)

    @staticmethod
    def data(s: str = ''):
        print(f'[DATA][{mylog.st()}]' + s)

    @staticmethod
    def warn(s: str = ''):
        print(f'[{mylog.yellow("WARN")}][{mylog.st()}]' + s)

    @staticmethod
    def yellow(s: str = ''):
        return '\033[33m' + s + '\033[0m'
